<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="org.apache.commons.httpclient.HttpClient"%>
<%@ page import="org.apache.commons.httpclient.methods.PostMethod"%>

<%
             String xml="<?xml version='1.0' encoding='utf-8' ?><data><bid>009</bid><pwd>8e25861bfb12709912b694de7034a5aa</pwd><phonenumber>18680879292</phonenumber><sendcontent>测试测试</sendcontent></data>";
             PostMethod post=new PostMethod("http://sms.coocaatv.com/sms/down/");
			 post.setRequestBody(xml);
			 post.setRequestHeader("Content-type","application/x-www-form-urlencoded;charset=UTF-8");
			 HttpClient httpclient=new HttpClient();
			 int result_code=httpclient.executeMethod(post);
			 System.out.print("result_code:"+result_code);
			 String reslutValue=post.getResponseBodyAsString();
			 System.out.print("reslutValue:"+reslutValue);
			 post.releaseConnection();	 
%>